﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Uurrooster_opdracht
{
    public partial class formMain : Form
    {
        public formMain()
        {
            InitializeComponent();
        }

        

        private void butDocenten_Click(object sender, EventArgs e)
        {
            //FormDocenten docent = new FormDocenten();
            //docent.Visible = true;
        }

        

        private void tonenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Uurrooster UurroosterForm = new Uurrooster();
            UurroosterForm.TopLevel = false;
            panel.Controls.Add(UurroosterForm);
            UurroosterForm.WindowState = FormWindowState.Maximized;
            UurroosterForm.Show();
            UurroosterForm.Dock = DockStyle.Top;
            UurroosterForm.BringToFront();
        }






        //open een item uit het menu
        private void docentenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDocenten docentenForm = new FormDocenten();
            docentenForm.TopLevel = false;
            panel.Controls.Add(docentenForm);
            docentenForm.WindowState = FormWindowState.Maximized;
            docentenForm.Show();
            docentenForm.Dock = DockStyle.Top;
            docentenForm.BringToFront();
        }

        private void panel_Paint(object sender, PaintEventArgs e)
        {

        }



        private void formMain_Load(object sender, EventArgs e)
        {

        }

        private void lokalenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormLokaal lokaalForm = new FormLokaal();
            lokaalForm.TopLevel = false;
            panel.Controls.Add(lokaalForm);
            lokaalForm.WindowState = FormWindowState.Maximized;
            lokaalForm.Show();
            lokaalForm.Dock = DockStyle.Top;
            lokaalForm.BringToFront();
        }


        private void studentenToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            FormStudenten studentenForm = new FormStudenten();
            studentenForm.TopLevel = false;
            panel.Controls.Add(studentenForm);
            studentenForm.WindowState = FormWindowState.Maximized;
            studentenForm.Show();
            studentenForm.Dock = DockStyle.Top;
            studentenForm.BringToFront();
        }

        private void vakkenToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            FormVakken vakkenForm = new FormVakken();
            vakkenForm.TopLevel = false;
            panel.Controls.Add(vakkenForm);
            vakkenForm.WindowState = FormWindowState.Maximized;
            vakkenForm.Show();
            vakkenForm.Dock = DockStyle.Top;
            vakkenForm.BringToFront();
        }

    }
}
